package service;

import dao.StudentDao;
import pojo.*;

import java.util.List;

/**
 * @author tao
 * @date 2021/11/10
 */
public class StudentServiceImpl implements StudentService{

    private StudentDao studentDao;

    public void setStudentDao(StudentDao studentDao) {
        this.studentDao = studentDao;
    }

    public int addStudent(Student student) {
        return studentDao.addStudent(student);
    }

    public Student selectStudent(int id) {
        return studentDao.selectStudent(id);
    }

    public Student studentPassword(int id) {
        return studentDao.studentPassword(id);
    }

    public List<Clazz> myClazz(int id) {
        return studentDao.myClazz(id);
    }

    public int outClazz(int id,int sid) {
        return studentDao.outClazz(id,sid);
    }

    public List<Work> myWork(int id) {
        return studentDao.myWork(id);
    }

    public int addClazz(int id,int sid) {
        return studentDao.addClazz(id,sid);
    }

    public Work selectWorkBook(int id) {
        return studentDao.selectWorkBook(id);
    }

    public MyWork selectStudentWorkBook(int id,int sid) {
        return studentDao.selectStudentWorkBook(id,sid);
    }

    public int submitJob(MyWork myWork) {
        return studentDao.submitJob(myWork);
    }

    public MyWork selectWork(int wid) {
        return studentDao.selectWork(wid);
    }
}
